/**
 * 对象属性合并
 * @param {Object} target 目标对象
 * @param {Object} source 源对象
 * @param {Boolean} override 是否覆盖
 */
export function mergeProperties(target, source, override = true) {
  if (!source || typeof source !== 'object') return target;
  
  Object.keys(source).forEach(key => {
    if (override || target[key] === undefined) {
      target[key] = source[key];
    }
  });
  
  return target;
}

export default {
  mergeProperties
}; 